<%- include('header') %>
<div class="user-profile mt-50">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 col-md-3">
        <%- include('user-info') %>
      </div>
      <!-- 右侧内容 -->
      <form action="" method='post' enctype="multipart/form-data">
        <div class="col-xs-12 col-md-7">
          <div class="avatar-box">
            <h3>头像</h3>
            <div class="picture-box">
              <img src="<%= user.avatar || '/img/upload.png' %>" alt="文章插图" class="img-rounded upload-img">
              <input type="file" class="file-inp" name="img">
            </div>
            <script src="/js/upload-preview.js"></script>
          </div>
          <div class="sex-box">
            <h3>性别</h3>
            <select name="sex" class="check-sex">
              <option value="m" <%= user.sex==='m'? 'selected':'' %>>男</option>
              <option value="f" <%= user.sex==='f'? 'selected':'' %>>女</option>
              <option value="x" <%= user.sex==='x'? 'selected':'' %>>保密</option>
            </select>
          </div>

          <h3>请选择地区：</h3>
          <div class="region">
            <select name="province" class="item provinceSelect">
              <option value="-1">请选择省</option>
            </select>
            <select name="city" class="item citySelect">
              <option value="-1">请选择市</option>
            </select>
            <select name="county" class="item countySelect">
              <option value="-1">请选择区/县</option>
            </select>
          </div>
          <script src="/js/ajax.js"></script>
          <script src="/js/region.js"></script>

          <div class="intro-box">
            <h3>自我描述</h3>
            <textarea name="intro"><%= user.intro|| '请填写您的介绍！'  %>  </textarea>
          </div>
          <div class="save-box">
            <input class="btn btn-default mt-20 mb-30 bg-color-primary color-white br-20" type="submit" value="保存">
          </div>
        </div>
      </form>
      <!-- 右侧内容结束 -->
    </div>
  </div>
</div>
<!-- user-profile内容结束 -->
<%- include('footer') %>
